package com.example.demo.dao;

import com.example.demo.dto.PageLimit;
import com.example.demo.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookDao {

    @Select("select b_name as 'bookName', b_author as 'bookAuthor', b_bkid as bookBkid from book limit #{start},#{items}")
    List<Book> selectAllBook(PageLimit pageLimit);
}
